a3503a
@@ -1147,7 +1147,9 @@
public class MapUtils {
      */
     @SuppressWarnings("unchecked") // As per Javadoc throws CCE for invalid array contents
     public static <K, V> Map<K, V> putAll(final Map<K, V> map, final Object[] array) {
-        map.size();  // force NPE
+        if (map == null) {
+            throw new NullPointerException("The map must not be null");
+        }
         if (array == null || array.length == 0) {
             return map;
         }
